home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
asmutil
/
coreaids.zip
/
SCRN_TYP.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-06-25
|
899b
|
37 lines
; DESC: Returns the address of the video memory buffer V1.00
; OUT: *{VIDEO} segment address of start of video memory area
; Useful only with MDA and CGA graphics. B&W area is at B000H
; while color area is at B800H
; SAMPLE: Callm SCRN_TYP,,<VIDEO>
; ####################################################################
Extrn PUSHALL:NEAR
Extrn POPALL:NEAR
SCRN_TYC Segment
Assume CS:SCRN_TYC
Public SCRN_TYP
;notice.
DB 'SCRN_TYP - V1.00, Copyright 1987, CoreTechs ',0DH,0AH
SCRN_TYP Proc Near ;returns the offset of
Call PUSHALL ;the screen in memory.
Mov BX,0B800H ;assume default of color.
Int 11H ;get equipment determination.
And AX,0030H ;isolate crt switches.
Cmp AL,30H
Jne COLOR
Mov BX,0B000H ;reset for b&w.
COLOR: Push BX ;return video area.
Call POPALL
Ret
SCRN_TYP Endp
SCRN_TYC Ends
End